#ifndef __GOFGAME_COMMON_RESOURCE_TEXTURE_RESOURCE_H__
#define __GOFGAME_COMMON_RESOURCE_TEXTURE_RESOURCE_H__

#include "gofgame/common/resource/TypedResource.h"
#include <cocos2d.h>
#include <string>

namespace gofgame {
	namespace common {
		namespace resource {

			using namespace cocos2d;
			using namespace std;

			struct TextureResource : public TypedResource<CCTexture2D> {
			public:
				TextureResource(const char *imageName);

			protected:
				virtual void onCollectFileNames(FileNameCollector &fnc) _override;
				virtual void onLoad() _override;

			private:
				string imageName;
			};
		}
	}
}

#endif //__GOFGAME_COMMON_RESOURCE_TEXTURE_RESOURCE_H__
